{extend name="public:_base" /}
{block name="js"}
{include file="public/_validform"}

<!-- 配置文件 -->
<script type="text/javascript" src="__STATIC__/admin/hui/lib/ueditor/1.4.3/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="__STATIC__/admin/hui/lib/ueditor/1.4.3/ueditor.all.js"></script>

<script type="text/javascript">
    var ue = UE.getEditor('editor',{
        toolbars: [
            ['fullscreen', 'source', '|', 'undo', 'redo', '|','bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc']
        ],
        initialFrameHeight:150,
    });
</script>
{/block}

{block name="main"}
<article class="page-container">
    <form class="form form-horizontal" action="" id="form"
          method="post">

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">收件人地址：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="email" class="input-text" value="" placeholder=""
                       datatype="e" name="to">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">标题：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text"
                       placeholder="标题" datatype="*" name="title">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">发送内容：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <script id="editor" type="text/plain" name="content" style="width:100%;"></script>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                <input class="btn radius btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
                <input class="btn radius btn-default radius" type="reset" value="&nbsp;&nbsp;重设&nbsp;&nbsp;">

            </div>
        </div>
    </form>
</article>
{/block}

